import request from '@/utils/request'

// 查询教案检查列表
export function listTeachPlanRecord(query) {
  return request({
    url: '/course/teachPlanRecord/list',
    method: 'get',
    params: query
  })
}

// 查询教案检查详细
export function getTeachPlanRecord(id) {
  return request({
    url: '/course/teachPlanRecord/' + id,
    method: 'get'
  })
}

// 新增教案检查
export function addTeachPlanRecord(data) {
  return request({
    url: '/course/teachPlanRecord',
    method: 'post',
    data: data
  })
}

// 修改教案检查
export function updateTeachPlanRecord(data) {
  return request({
    url: '/course/teachPlanRecord',
    method: 'put',
    data: data
  })
}

// 删除教案检查
export function delTeachPlanRecord(id) {
  return request({
    url: '/course/teachPlanRecord/' + id,
    method: 'delete'
  })
}

// 获取教案检查记录表（数据综合查看表）
export function getTeachPlanTable(data) {
  return request({
    url: '/course/teachPlanRecord/getTeachPlanTable',
    method: 'get',
    params: data
  })
}
